Difference between local global and static variable